<template>
  <div>
    <van-search
      v-model="value"
      show-action
      left-icon="guide-o"
      placeholder="请输入搜索关键词"
      @search="onSearch"
      background="#e5017d"
    >
      <template #action>
        <div @click="onSearch">搜索</div>
      </template>
    </van-search>
  </div>
</template>

<script>
export default {
  name: "mySearch",
  data() {
    return {
      value: ""
    };
  },
  methods: {
    onSearch() {}
  }
};
</script>
<style  scoped>
</style>